package com.huike.pmps.service;

import com.huike.pmps.model.dto.common.PageInfo;
import com.huike.pmps.model.entity.Member;
import com.huike.pmps.model.entity.POCourse;
import com.huike.pmps.model.vo.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;

/**
 * 作者：谌贵斌(黑桃K)
 * 日期: 2888-08-08
 * 老师QQ: 272488352
 * 官方QQ交流群: 377748272
 * 刀客程序员官网：http://www.daoke360.com
 * 刀客程序员淘宝旗舰店：https://daoke360.taobao.com/
 */
public interface POCourseService {

    Result insertOne(POCourse poCourse);

    Result selectByCondition(Member member, PageInfo pageInfo,  String po, String customerName, String regionName, String provinceName,String teamName, String courseName, String courseChargeName, String courseState);

    //根据ID更新课程数据
    Result updateById(POCourse poCourse,Member member);

    Result deleteById(Integer id);

    Result selectByPoId(Integer poId);

    Result updateStateById(String ids);

   /* Result updateCourseStateById(Integer id,String courseState);*/

    POCourse selectById(Integer id);

    Result updateAcceptanceReport(Integer poCourseId, String receptTimeLength,String fileName, String filePath, Date updateDate);

    //导出po课程列表
    void exportPOCourse(HttpServletResponse response, Member member, String po, String customerName, String regionName, String provinceName, String teamName,String courseName, String courseChargeName, String courseState);

    //旧系统PO数据导入
    Result insertByImportPoCourse(MultipartFile file);

    POCourse selectOneByImportCourseId(Long importCourseId);

    //根据课程ID查询课程状态
    Result selectPoCourseStateById(Integer id);
}
